import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import LF from '@/components/LF'
import TurboAdpter from '@/components/TurboAdpter'
import Test from '@/components/Test'
import measurement from '@/components/measurement'
// import LFPanel from '@/components/LFPanel'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'LF',
      component: LF,
      props: (route) => ({
        id: route.query.id,
        model: route.query.id
      })
    },
    // {
    //     path: '/panel',
    //     name: 'LFPanel',
    //     component: LFPanel,
    //     props:(route)=>({
    //       id: route.query.id
    //     })
    //   },
    {
      path: '/test',
      name: 'Test',
      component: Test
    },
    {
      path: '/TurboAdpter',
      name: 'TurboAdpter',
      component: TurboAdpter
    },
    {
      path: '/measurement',
      name: 'measurement',
      component: measurement
    }
  ]
})
